package com.xfhy.componentbase.service;

import android.app.Activity;

import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;

/**
 * @author : xfhy
 * Create time : 2020-03-01 11:15
 * Description : 账户组件对外提供的Service接口,可用于跨组件传递数据和方法调用
 */
public interface IAccountService {

    /**
     * 是否已经登录
     */
    boolean isLogin();

    /**
     * 获取登录用户的AccountId
     */
    String getAccountId();

    /**
     * 创建UserFragment
     * @param activity
     * @param containerId
     * @param fragmentManager
     * @return
     */
    Fragment newUserFragment(Activity activity, int containerId, FragmentManager fragmentManager);

}
